$(document).ready(function() {
$('#productCustomize_pageTitle br').remove();
$('#productCustomize_instructions br').remove();

$('#productCustomize_confirm').html('<input type="submit" name="ctl00$ContentPlaceHolder1$btnAddToCart" value="Add to Cart" id="ctl00_ContentPlaceHolder1_btnAddToCart" style="margin:0 10px 0 0;" /><input style="margin:0 5px 0 0;" id="ctl00_ContentPlaceHolder1_CheckBox1" type="checkbox" name="ctl00$ContentPlaceHolder1$CheckBox1" /><label for="ctl00_ContentPlaceHolder1_CheckBox1">If you approve of the document, please check this box and click the "Add to Cart" button.</label><span id="ctl00_ContentPlaceHolder1_CustomValidator1" style="color:Red;visibility:hidden;">You must check the above box to add this document to the cart.</span>');



});
//conformation alert for edoc builder
function edocConfirmationNotice(){
$(function() {$("#ctl00_ContentPlaceHolder1_btnAddToCart").click(function() {   
var box = $("#ctl00_ContentPlaceHolder1_CheckBox1"); 
if ($("#ctl00_ContentPlaceHolder1_EDocClient_lblInstructions").css("color") == "red"){
alert('Items marked with an asterisk (*) are not optional. Please enter information for all required items and click "Update Preview" error1');}
else if ($("#ctl00_ContentPlaceHolder1_EDocClient_lblInstructions").is(":contains('Please')")){
alert('Items marked with an asterisk (*) are not optional. Please enter information for all required items and click "Update Preview" error2');}
else if (confirm("By approving this document you are indicating that you understand and agree that we will produce what you have seen in the preview as the final proof before your job is produced. What you have approved is what you will get.Any errors or omissions which are the result of incomplete or inaccurate entries are the sole responsibility of you, the author, and said errors or omissions in now way relieve you of your responsibility to pay for this product according to our normal terms and conditions.")){box.checked = true;}
else{ return false;}}); });
}//----->>